package com.ftg.product.exam.dto;

import com.diboot.core.binding.query.BindQuery;
import com.diboot.core.binding.query.Comparison;
import com.ftg.product.exam.entity.ExamDatabaseops;
import com.ftg.product.exam.entity.ExamDatabase;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
* 记录相应的数据库主题目下面的所有子选项 DTO定义
* @author kangjx
* @version 1.0
* @date 2021-01-14
 * Copyright © ftg
*/
@Getter @Setter @Accessors(chain = true)
public class ExamDatabaseopsDTO extends ExamDatabaseops  {
    private static final long serialVersionUID = -9071700163924056990L;

    /**
    * 关联字段 ExamDatabase.title
    */
    @BindQuery(comparison = Comparison.EQ, entity = ExamDatabase.class, field = "title", condition = "this.databasecode=id")
    private String databasecodeTitle;
}